<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .deta{
            width: 95%;
            margin: auto;
        }
        table{
            width: 50%;

        }
    </style>
</head>
<body>
<div class="deta">
    <table>
        <tr>
            <td>
                <h2>您的消费明细</h2>
            </td>
            <td>
                总计：<?php echo ($money); ?>元
            </td>
        </tr>
        <?php if(is_array($data)): foreach($data as $key=>$val): ?><tr>
                <td>
                    <?php echo ($val['ord_time']); ?>
                </td>
                <td>
                    您花费了<?php echo ($val['money']); ?>元
                </td>

            </tr><?php endforeach; endif; ?>
    </table>
</div>
</body>
</html>